#ifndef __LED_H_
#define __LED_H_

#include "stm32h7xx.h"
#include "stm32_types.h"
#include "stm32h7xx_hal.h"

#include "MyIncludes.h"

extern void Init_SEGGER_RTT(void);

#define OUTPUT_WINDOW_NUW 0

//#define ENABLE_RTT_FUNCTIONS

#ifdef ENABLE_RTT_FUNCTIONS
extern int SEGGER_RTT_vprintf(unsigned BufferIndex, const char * sFormat, va_list * pParamList);
extern int SEGGER_RTT_CustomFunction( char TerminalId , unsigned BufferIndex, const char *sFormat, ...) ;
#else
    static inline int SEGGER_RTT_CustomFunction(unsigned BufferIndex, char TerminalId, const char *sFormat, ...) {
        return 0;  
    }
#endif // RTT_FUNCTIONS_H

#endif

